package com.gyh.stlserver.service;

import com.github.pagehelper.PageInfo;
import com.gyh.stlserver.entity.Admin;
import com.gyh.stlserver.vo.AdminVo;

import java.util.List;

public interface AdminService {
    Admin getAdminByPhone(String phone);

    List<Admin> getAdminAll(Admin admin);

    PageInfo<Admin> getAdminByPage(Integer page, Integer limit, Admin admin);

    int addAdmin(Admin admin);

    Admin checkPhone(String phone);

    int modifyAdmin(Admin admin);

    int deleteAdmin(Integer id);

    int delSelected(Integer[] ids);

    Admin login(AdminVo adminVo);

}
